<div class="users form container">
	
	<h2><?php echo __d('admin', 'Create Foundation'); ?></h2>
	
<?php
	$formOptions = array (
		'inputDefaults' => array (
			'div' => array('class' => 'form-group col-lg-12'),
			'class' => 'form-control'
		)
	);
	
	$formElements = array (
		'name' => array(
			'class' => 'form-control input-lg', 
			'placeholder' => __('Name')
		),
		'description' => array(
			
		),
		'type_id' => array(
			'div' => 'form-group col-lg-6',
			'class' => 'form-control'
		),
	);
	
?>
	<?php echo $this->Form->create('Foundation', $formOptions); ?>
		<div class="row">
			<?php 
			foreach($formElements as $field => $options) {
				echo $this->Form->input($field, (array)$options) . "\n\n";	
			}
			?>
		</div>
		<div class="row">
			<?php echo $this->Form->submit(__d('admin', 'Create'), array('class' => 'btn btn-primary')); ?>
		</div>
	<?php echo $this->Form->end(); ?>
	
</div>
